package com.fa4j.product.comment.model;

import com.fa4j.common.base.model.AbstractCmd;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.util.List;
import lombok.Data;

@Data
@Schema(description = "商品评论创建参数")
public class CommentCreateCmd extends AbstractCmd {

    @NotNull
    @Schema(description = "商品ID")
    private Integer itemId;

    @NotNull
    @Schema(description = "商品规格ID")
    private Integer specId;

    @NotNull
    @Schema(description = "评分")
    private Double score;

    @NotBlank
    @Size(max = 32)
    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "评论图片视频列表")
    private List<Long> mediaIds;

    @Schema(description = "订单ID")
    private Long orderId;

    @NotNull
    @Schema(description = "评论账户ID")
    private Long accountId;

}
